package com.modules.asset.common;

import lombok.Data;

import java.io.Serializable;

/**
 * 通用响应体。
 */
@Data
public class BaseResponse<T> implements Serializable {

    private final int code;
    private final T data;
    private final String message;

    public BaseResponse(int code, T data, String message) {
        this.code = code;
        this.data = data;
        this.message = message;
    }
}

